SQL Server删除所有数据表的数据On this page删除所有数据表的数据主要依靠自带的循环每张表的存储过程-sp_msforeachtable清除数据(重置自增列)EXEC sp_msforeachtable @Command1 ='TRUNCATE TABLE ?'清除数据EXEC sp_MSforeachtable @command1='DELETE FROM ?'彻底删除表EXEC sp_msforeachtable @Command1 ='DROP TABLE ?'